From: Bordcs Mihly [bordacs@mail.matav.hu]
Sent: Monday, February 28, 2000 6:49 AM
To: 'Robert Dunn'
Subject: More extensions on RawRtf

Hi Robert,
1) Re: rtfMailSlot: it's now OK.

2) Re: reducing of flickering:
Thanx for the idea BeginUpdate() - EndUpdate() (really, I never used it for editors, only for TListView - but TString (items of lines) are the same things...)

3) More Extensions on RawRtf (see example langtest)

New function of class TRichEditRawRtf : TRichEdit:
---------------------------------------------------
    int  __fastcall GetLangID(bool selection=false);
    int __fastcall SetLangID(int langID, bool selection=false);
    int __fastcall GetDefLang();
    void __fastcall SetDefLang(int langID);
    int __fastcall GetFirstVisibleLine();
    int __fastcall GetLastVisibleLine();
    void __fastcall GetEdRec();
    //future extension
    int __fastcall GetBaseLineY(int lineIndex); //not yet ready

4) Project TestLang (BCB4)
Implementation/test of the above functions/extensions.

WARNING
in function GetInstalledSpLangs() I'm using:
AnsiString key="SOFTWARE\\Microsoft\\Shared Tools\\Proofing Tools\\Spelling";
Please verify it for other platforms, too (this is valid (only?) for NT4)!

Extern files:
_mullangNL.rtf, _pirvon.emf, _novon.emf

REMARKS:
As you can see, I tried to write wave underlining (w. color red) for a speller thread.
It is very primitive, please advise a better method.
I can find out TRect for underlining words by words, but this method is volatile / absolutely not professional.

Please don't hesitate to let me know your remarks.

5) Re: TTheasurus class, TMSSpeller component: in few days (they are ready 2 years ago, but missing remarks, explications, description etc)

Bordacs

Attachment: langtest.zip, lang2.txt (extensions)

  
